module therm_struct(in,out);
  input [3:0] in;
  output out;
  wire t2, t1, t0;

  and and1(t0,~in[3],~in[2],~in[1]);
  and and2(t1,~in[3],~in[2],in[1],in[0]);
  and and3(t2,in[2],in[1],in[0]);
  or or1(out,t2,t1,t0);

endmodule


